<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>	
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/main.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/pages/login/css/top_style.css" />
<script language="javascript" type="text/javascript"
	src="<%=request.getContextPath()%>/swordweb/core/jsimport/Sword.js"  bizJs="['/pages/biz/activity/activityForm.js']"></script>
</head>
<body style="border-left: 1px solid #DDD9DA;">
	<div sword="PageInit" name="pageinit_1" onAfter="PageInit_onAfter_pageinit_1()"></div>
	<input style="display: none;" id="vipsyts" type="text" value="${vipsyts }"></input>
	<div class="top_2">
		<div class="top_nav_list">
			<a>发起活动</a>
		</div>
	</div>
	<div align="center" style="margin-left:25px;margin-top:25px; margin-right: 25px;">
		<div sword="SwordForm" name="form_activity">
			<div name="id" type="hidden"></div>
			<div name="webusername" type="hidden"></div>
			<table class="layout1" style="width:90%">
				<colgroup>
					<col width="15%" />
			   	 	<col width="35%" />
					<col width="15%" />
			    	<col width="35%" />
				</colgroup>
				<tr>
					<th colspan="4" class="title">
						编辑活动
					</th>
		    	</tr>
		    	<tr>
					<th>活动logo</th>
					<td colspan="1">
						<div name="fj" dataName="fj" type="file2" fileListMax="1" addCaption="添加图标" 
						  typeFilter="{'图片 (*.jpg, *.jpeg, *.gif, *.png)': '*.jpg; *.jpeg; *.gif; *.png'}" rule="must" deleteCtrl="File2Ctrl_deleteFile" msg="不能为空"></div>
					</td>
					<td colspan="2"><span style="color:red;font-weight:900;">(注意：上传后可点击文件后放大镜图标进行预览,再次点击消失;点击叉号图标进行删除.)</span></td>
				</tr>
		    	<tr>
					<th>活动标题</th>
					<td colspan="1">
						<div name="hdTitle" type="text" rule="must_length;0,1000"></div>
					</td>
					<td colspan="2"></td>
				</tr>
		    	<tr>
					<th>开始时间</th>
					<td colspan="1">
						<div name="hdKssj" type="date" rule="must"></div>
					</td>
					<th>结束时间</th>
					<td colspan="1">
						<div name="hdJssj" type="date" rule="must"></div>
					</td>
				</tr>
		    	<tr>
					<th>活动简介</th>
					<td colspan="3">
						<div name="hdDjj" type="textarea" rule="must" x="50%" style="height:50px;"></div>
					</td>
				</tr>
		    	<tr>
					<th>联系人</th>
					<td colspan="1">
						<div name="hdFqrxm" type="text" rule="must"></div>
					</td>
					<th>联系方式</th>
					<td colspan="1">
						<div name="hdFqrlxfs" type="text" rule="must_cellphone"></div>
					</td>
				</tr>
		    	<tr>
					<th>活动详情</th>
					<td colspan="3">
						<div name="hdDetail" type="textarea" rule="must"></div>
					</td>
				</tr>
			</table>
			<table class="layout1" style="width:90%">
			<div type="hidden" name="qrcodeId"></div>
				<colgroup>
					<col width="15%" />
			   	 	<col width="25%" />
					<col width="60%" />
				</colgroup>
				<tr>
					<th colspan="3" class="title">
						编辑二维码
					</th>
		    	</tr>
		    	<tr>
		    		<th>二维码图片</th>
		    		<td colspan="1">
		    			<div sword="SwordSubmit" class="addright" name="submit_1" value="点击生成二维码" onclick="a_onclick_scewm()"></div>
		    			<div name="qrcodeImgpath" type="text" show="false"></div>
		    			<div name="qrcodeInfo" type="text" show="false"></div>
		    		</td>
		    		<td colspan="1">
			    		<TABLE height="200px">
			    			<TR>
			    				<TD width="200px">
			    					<IMG id="imgArea" alt="二维码图片" src="" width="200px" height="200px"/>
			    				</TD>
			    				<TD align="center">
					    			<SPAN style="color:red;font-weight:900;">
					    			(说明：二维码生成成功后，选中图片右键选择“图片另存为...”即可保存到本地！)</SPAN>
			    				</TD>
			    			</TR>
			    		</TABLE>	
		    		</td>
		    	</tr>
		    	<tr>
		    		<th>二维码类型</th>
		    		<td colspan="2">
						<div name="qrcodeType" type="radio" rule="must" colWidth="100px">
						   <div code="no" caption="无限次使用"></div>&nbsp;&nbsp;
						   <div code="day" caption="一天一次"></div>&nbsp;&nbsp;
						   <div code="week" caption="一周一次"></div>&nbsp;&nbsp;
						   <div code="month" caption="一月一次"></div>
						</div>
		    		</td>
		    	</tr>
		    	<tr>
		    		<th>用户扫描二维码所赠财富值</th>
		    		<td colspan="2">
		    			<div name="qrcodeAddwealth" type="text" rule="must_number"></div>
		    		</td>
		    	</tr>
		    	<tr>
		    		<th>二维码密码<SPAN style="color:gray">(选填项)</SPAN></th>
		    		<td colspan="2">
		    			<div name="qrcodePassword" type="text"></div>
		    		</td>
		    	</tr>
		    </table>	
			<div class="mar_center">
				<span class="fl_340 pad_bot" style="width:43%"></span> 
				<span class="pad_bot bot"><a onclick="a_onclick_confirmSub()" style="cursor: pointer;width:105px;">确认提交</a> </span>
			</div>
			<div style="clear:both"></div>
		</div>
	</div>

	<!-- 生成二维码开始 -->
	<div sword="SwordSubmit" name="sub_ewm" value="生成二维码" show="false"
		 ctrl="ZxingCtrl_genQRcodeAndGetPath" onSuccess="SwordSubmit_onSuccess_sub_ewm()">
	</div>
	<!-- 生成二维码结束 -->
	<!-- 确认提交开始 -->
	<div sword="SwordSubmit" name="sub_tj" value="确认提交" show="false"
		 tid="ActivityService_saveHdAndEwm" onSuccess="SwordSubmit_onSuccess_sub_tj()">
		 <div widgetName="form_activity"></div>
	</div>
	<!-- 确认提交结束 -->
</body>
</html>